#pragma once
#include "base/Control.h"
#include "base/TrueTypeFont.h"

class Button : public Control
{
public:
    Button() {}
    ~Button() {}

    void ParseXmlElement(class TiXmlElement* ele);
    bool SetAttribute(const char* attrName, const char* attrVal);
    void OnDraw();
    void onMouseMove(int x, int y);
    void onMouseButtonDown(int button, int x, int y);
    Control* CreateControl(std::string sControlClassName);
    void onMouseButtonUp(int button, int x, int y);
    void onKeyDown(int key, bool bCtrl, bool bShift, bool bAlt) {}
    void onKeyUp(int key) {}
    BlueprintScriptLibrary::Class* GetClass();
    VarBaseString content;
    VarBaseString sClrBk;
    bool isMouseDown;
    EventHandler<Control, VarBaseString> onClick;
};
RegisterBlueprintClass(Button)
